package com.sandasai.action.teacher;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.sandasai.service.TeacherManager;
import com.sandasai.vo.MarkBean;
@Controller
@Scope("prototype")
public class MarkPageAction extends ActionSupport {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    @Resource
	private TeacherManager teacherManager;
    private String tips;
    /**
     * @return
     */
    @Override
    public String execute() throws Exception{
        ActionContext ctx = ActionContext.getContext();
        String username = (String) ctx.getSession().get("username");
        List<MarkBean> markBeans = teacherManager.getMarkBeans(username);
        ctx.put("markBeans", markBeans);
        return SUCCESS;
    }
	public String getTips() {
		return tips;
	}
	public void setTips(String tips) {
		this.tips = tips;
	}
}